<#import "../home/masterTemplate.ftl" as layout />
<#include "../macros/utils.ftl" />
<#import "../macros/spring.ftl" as spring />

<#----><#include "/dumps/dump-util.ftl" />

<#assign scriptsObj>
	<#if isMobile()>

	<#else>
		require(["../js/modules/form"], function() {
	</#if>
		base.init();
	<#if !isMobile()>
		});
	</#if>
</#assign>

<@layout.masterTemplate wtSection="" wtSubsection="" title="" bodycss="" wrappercss="bg" section="home" subsection="" pagename="" color="" sectionIdx="0">
	
	<@backHeader "Add" "Users" /> 
	<div class="frm" data-async="true">
		<form action="<@spring.url '/users/add_input/' />" method="POST">
		  <div class="form-group">
		  	<label for="email">Email Address:</label>
		  	<input type="email" class="form-control" id="email" name="email" placeHolder="Email Address" title="Email address" required="required" maxlength="45"  data-rules="maxlength:45"/>
		  </div>
		  <div class="form-group">
		  	<label for="firstname">Firstname:</label>
		  	<input type="text" class="form-control" id="firstname" name="firstname" placeHolder="Firstname" title="First name" required="required"  maxlength="45" data-rules="maxlength:45"/>
		  </div>
		  <div class="form-group">
		  	<label for="lastname">Lastname:</label>
		  	<input type="text" class="form-control" id="lastname" name="lastname" placeHolder="Lastname" title="Last name" required="required"  maxlength="45" data-rules="maxlength:45"/>
		  </div>
		  <div class="form-group">
		  	<label for="password">Password:</label>
		  	<input type="password" class="form-control" id="password" name="password" placeHolder="Password" title="Password" required="required" maxlength="45" data-rules="maxlength:45,matchId:password"/>
		  </div>
		  <div class="form-group">
		  	<label for="password2">Repeat Password:</label>
		  	<input type="password" class="form-control" id="password2" name="password2" placeHolder="Password confirmation" title="Password confirmation" required="required" maxlength="45" data-rules="maxlength:45,matchId:password"/>
		  </div>
		  <div class="formroup">
		  	<label for="badgeID">Badge number <span>(Optional)</span>:</label>
		  	<input type="text" class="form-control" id="badgeID" name="badgeID" placeHolder="Badge Identifier" title="Badge number"  maxlength="9" data-rules="number,maxlength:9"/>
		  </div>

  		  <div class="btn-group" data-toggle="buttons">
  		  	<br>
		  	<label for="privileges" class="control-label input-group">Type:</label>
  			<label class="btn btn-default">
  				<input type="radio" name="privileges" value="1">Administrator
  			</label>
  			<label class="btn btn-default active">
  				<input type="radio" name="privileges" value="2" checked>Guest
  			</label>
          </div>

		  <div><a class="btn btn-primary submit right" role="button">submit</a></div>
		</form>
	</div>
	<#----><@dumper m_site "m_site" false true/>
</@layout.masterTemplate>